﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RollBack.src
{
    /// <summary>
    /// Encapsulates the event handler required to handle the start/stop/pause activities in the destination panel
    /// </summary>
    public class BackupJobTabEventHandlers
    {
        public EventHandler m_startButtonClickHandler;
        public EventHandler m_stopButtonClickHandler;
        public EventHandler m_pauseButtonClickHandler;
        public EventHandler m_advancedButtonClickHandler;
        /// <summary>
        /// callback for drag and drop events 
        /// </summary>
        public EventHandler m_dragDropHandler;

        /// <summary>
        /// Set the handlers for start,stop,pause and advanced buttons
        /// </summary>
        /// <param name="startButton"></param>
        /// <param name="stopButton"></param>
        /// <param name="pauseButton"></param>
        /// <param name="advancedButtonClickHandler"></param>
        public BackupJobTabEventHandlers(EventHandler startButton,
            //EventHandler stopButton,
            EventHandler pauseButton,
            EventHandler advancedButtonClickHandler,
            EventHandler dragDropHandler)
        {
            m_startButtonClickHandler = startButton;
            //m_stopButtonClickHandler = stopButton;
            m_pauseButtonClickHandler = pauseButton;
            m_advancedButtonClickHandler = advancedButtonClickHandler;
            m_dragDropHandler = dragDropHandler;
        }
    }
}
